package service.impl;

import dao.CustomerDao;
import dao.StaffDao;
import entity.Customer;
import org.springframework.stereotype.Service;
import service.CustomerService;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service("customerService")
public class Customerimpl implements CustomerService {

    @Resource(name="customerDao")
    private CustomerDao customerDao;

    @Override
    public List<Customer> listjin() {
        return customerDao.listjin();
    }

    @Override
    public List<Customer> Qlist(Map<String, Object> map) {
        return customerDao.Qlist(map);
    }

    @Override
    public int Qadd(Customer customer) {
        return customerDao.Qadd(customer);
    }

    @Override
    public int Qupd(Customer customer) {
        return customerDao.Qupd(customer);
    }

    @Override
    public int Qdel(Customer customer) {
        return customerDao.Qdel(customer);
    }
}
